﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using WpfSnqkGasAnalysis.Model;

namespace WpfSnqkGasAnalysis
{
    /// <summary>
    /// 实现显示数据，序号
    /// </summary>
    /// 创建时间：2022-12-12 14:18:15。作者：王浩力
    internal class ItemIndexConvert : IValueConverter
    {
        public int Index = 0;

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            ++Index;
            return Index;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
